package com.boco.webmaster.base;

import java.util.*;
import com.boco.common.util.db.*;

public abstract class WMJdbcDAO {
    protected static int QUERY_COND_INT_ALL = -1;
    protected static String QUERY_COND_STR_ALL = "_ALL_VALUE";

    protected WMJdbcDAO() {
    }


    protected SqlQueryCmd getSqlQueryCmd(String dsName) throws Exception{
        return DbCmdFactory.getInstance().createSqlQueryCmd(dsName);
    }

    protected SqlQueryCmd getSqlQueryCmd() throws Exception{
        return DbCmdFactory.getInstance().createSqlQueryCmd();
    }

    protected SqlExecCmd getSqlExecCmd(String dsName) throws Exception{
       return DbCmdFactory.getInstance().createSqlExecCmd(dsName);
    }

   protected SqlExecCmd getSqlExecCmd() throws Exception{
      return DbCmdFactory.getInstance().createSqlExecCmd();
   }

   protected DbType getDbType(String dsName){
       return DbConnManager.getInstance().getDbType(dsName);
   }
}
